<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>
	CONTROL_SYSTEM_ADDRESS = "${CONTROL_SYSTEM_ADDRESS}"
	CONTEXT_PATH = "<%=request.getContextPath()%>";
</script>
<link rel="stylesheet" href="css/global.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/tree.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/main.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/redmond/jquery-ui-1.8.16.custom.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/jquery-ui-timepicker-addon.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/main_style.css" type="text/css" media="screen" title="no title" charset="utf-8">

<script src="js/jquery-1.7.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery-ui-1.8.16.custom.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.blockUI.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.blockUI-css.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery-ui-timepicker-addon.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.tools.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.form.2.93.js" type="text/javascript" charset="utf-8"></script>
<script src="js/ui-page.js" type="text/javascript" charset="utf-8"></script>
<script src="js/common.js" type="text/javascript" charset="utf-8"></script>
<script src="js/index.js" type="text/javascript" charset="utf-8"></script>

<title>主界面</title>
<style>
.ErrorTip{
color:red;
}
.inputError{
border-color: red;
}
</style>
</head>

<body>
	<div id="tblSchedulesDlg" class="dialogForm hidden" ltab="2" trigger="">
		<h3>会议日程</h3>
		<div class="dialog-form-content" style="width:400px;">
			<form action="MeetingSchedule/save" method="post">
				<field class="form-field"> 
					<input type="hidden" clear="false" name="meetingId" /> 
					<input type="hidden" zero="true" value="0" name="scheduleId" /> 
					<input type="hidden" name="speaker.userId" /> 
					<label class="title">主题</label> 
					<input type="text" name="subject" class=" long" required="true" /> 
					<label class="title">姓名</label> 
					<input type=text name="speaker.userName" value="" required="true" readonly="true" class=" long" /> 
					<a id="aFindSchedulesUser" class="button-icon16 search" href='#' url="User/meetingUserlist">查找</a> 
					<label class="title">开始时间</label> 
					<input type=text required="true" readonly="true" name="starttime" value="" class="myWdate long" id="scheduleSDate" /> 
					<label class="title">结束时间</label> 
					<input type=text required="true" readonly="true" name="endtime" value="" id="scheduleEDate" class="myWdate long" /> 
				</field>
			</form>
			<div class="buttonRegion">
				<a href="#" dlg="tblSchedulesDlg" name="saveDialogForm" class="dlgBtn  buttonS">确定</a> <a href="#" dlg="tblSchedulesDlg" name="closeDialogForm" class="dlgBtn  buttonS">取消</a>
			</div>
		</div>
	</div>
	<div id="tblMeetingusersDlg" class="dialogForm hidden" ltab="3" trigger="">
		<h3>参会人员</h3>
		<div class="dialog-form-content">
			<form action="MeetingUser/save" method="post">
				<field class="form-field"> 
					<input type="hidden" clear="false" name="meetingId" /> 
					<input type="hidden" zero="true" name="user.userId" /> 
					<label class="title">登录名</label> 
					<input tag="tip" type="text" name="user.loginId" required="true" class=" long" editable="false" /> 
					<a id="aFindUser" class="button-icon16 search" href='#' url="User/userlist" editable="false">查找</a> 
					<label class="title">邮箱</label> 
					<input tag="tip" type="text" name="user.userEmail" value="" required="true" class=" long" editable="false" /> 
					<label class="title">姓名</label> 
					<input tag="tip" type="text" name="user.userName" value="" required="true" class=" long" /> 
					<label class="title">职位</label> 
					<input type="text" name="user.userPosition" value="" required="true" class=" long" /> </field>
			</form>
			<div class="buttonRegion">
				<a href="#" dlg="tblMeetingusersDlg" id="michael" name="saveDialogForm" class="dlgBtn buttonS">确定</a> <a href="#" dlg="tblMeetingusersDlg" id="michael2" name="closeDialogForm" class="dlgBtn buttonS">取消</a>
			</div>
		</div>
	</div>
	<div id="tblVotesDlg" class="dialogForm hidden" ltab="4" trigger="">
		<h3>投票信息</h3>
		<div class="dialog-form-content">
			<form action="MeetingVoteInfo/save" method="post">
				<field class="form-field"> <label class="title">
					<input type="hidden" clear="false" name="meetingId" />
					<input type="hidden" zero="true" value="0" name="voteId" />
				<label class="title">主题</label> 
				<input type="text" name="subject" class="long" />
				<label class="title">描述</label> 
					<input type="text" name="voteDesc" class="long" /> 
				<label class="title">所属PPT</label> 
					<select id="cmbPpts" name="pptId" url="PPT/jsonlist?meetingId=" valuefield="id" textfield="subject" class="short"></select>
					<select name="pptPageId" parent="cmbPpts" url="PPT/jsonpages?pptId=" valuefield="pptPageId" textfield="pageInfo" class="short"></select>
				<label class="title">选择方式</label> 
				<select name="selectWay" class="long">
					<option value="0">单选</option>
					<option value="1">多选</option>
				</select>
				<div class="voteItems">
					<label class="title">选项1</label> 
					<input type="text" name="voteItems[0].itemDesc" class="long"/> 
					<a style="display:none" class="removeVoteItem button-icon16 subtract" href="#">减</a> 
					<a href="#" class="addVoteItem button-icon16 add" >加</a>
				</div>
				</field>

			</form>
			<div class="buttonRegion">
				<a href="#" dlg="tblVotesDlg" name="saveDialogForm"
					class="dlgBtn  buttonS"> 确定</a> 
				<a href="#" dlg="tblVotesDlg" name="closeDialogForm"
					class="dlgBtn  buttonS">取消</a>
			</div>
		</div>
	</div>
	<div id="tblNoticeDlg" class="dialogForm hidden" ltab="5" trigger="">
		<h3>通知</h3>
		<div id="meeting-notice-form" class="dialog-form-content">
			<form action="MeetingNotice/save" method="post">
				<field class="form-field"> 
					<input type="hidden" clear="false" name="meetingId" />
					<input type="hidden" zero="true" value="0" name="noticeId" />
					<label class="title">标题</label> 
					<input type="text" name="title" class="long" required="true"/>
					<label class="title">内容</label> 
					<input type="text" name="noticeDesc" class="long" required="true"/> 
					<label class="title">发送方式</label> 
					<select name="sendWay" class="long" required="true">
						<option value="0">自动发送</option>
						<option value="1">手动发送</option>
					</select>
					<label class="title">自动发送时间</label>
					<input type="text" readonly="true" required="true"  name="sendDate" class="long myWdate" /> 
				</field>
			</form>
			<div class="buttonRegion">
				<a href="#" id="btnSaveNotice" name="saveDialogForm" dlg="tblNoticeDlg" class="buttonS dlgBtn"><span>确定</span></a>
				<a href="#" id="btnCancelNotice" name="closeDialogForm" dlg="tblNoticeDlg" class="buttonS dlgBtn"><span>取消</span></a>
			</div>
		</div>
	</div>
	<div id="tblPPTSpeakerDlg" class="dialogForm hidden" ltab="6" trigger="">
		<h3>PPT演讲人</h3>
		<div id="meeting-PPTSpeaker-form" class="dialog-form-content">
			<form action="PPT/saveSpeaker" method="post">
				<field class="form-field"> 
					<input type="hidden" clear="false" name="meetingId" />
					<input type="hidden" clear="false" name="oldMeetingId" />
					<input type="hidden"  clear="false" name="oldSpeakerUserId" />
					<input type="hidden"  clear="false" name="oldPptId"/>
					<input type="hidden" zero="true" value="0" name="speakerUserId" />
                                <input type="hidden" clear="false" name="test1" />
					<label class="title">PPT </label> 
					<select id="speakerPpts" name="pptId" url="PPT/jsonlist?meetingId=" valuefield="id" textfield="subject" class="short"></select>
					<label class="title">演讲人</label> 
					<input type="text" name="speakerUserName" class="long" required="true"/>
					<a id="aFindSpeakerUser" class="button-icon16 search" href='#' url="User/meetingUserlist">查找</a>  
					<a class="button-icon16 search" href='#' url="User/meetingUserlist" style="display:none;">查找</a>
				</field>
			</form>
			<div class="buttonRegion">
				<a href="#" id="btnSavePPTSpeaker" name="saveDialogForm" dlg="tblPPTSpeakerDlg" class="buttonS dlgBtn"><span>确定</span></a>
				<a href="#" id="btnCancelPPTSpeaker" name="closeDialogForm" dlg="tblPPTSpeakerDlg" class="buttonS dlgBtn"><span>取消</span></a>
			</div>
		</div>
	</div>
	<div id="tblbatchPPTAttendDlg" class="dialogForm hidden" ltab="6" trigger="" style="width:600px;">
		<h3>参会人员</h3>
		<div id="meeting-PPTUser-form" class="dialog-form-content">
			<form action="MeetingUser/batchSave" method="post">
				<field class="form-field">
					<div>
					<a id="tblusers" href="User/meetingUsers" class="toolbar-meeting searchbtn" style="display:none;">查询</a>
					<input name="meetingId" type="hidden" clear="false"/>
					</div>
					<div class="">
						<h3>请选择人员</h3>
						<div id="tblusersData">
							<div pagesize="10"></div>
						</div>
						<ul id="tblusersPage" class="page"></ul>
					</div>
				</field>
			</form>
			<div class="buttonRegion">
				<a href="#" id="btnSavePPTAttend" name="saveDialogForm" dlg="tblbatchPPTAttendDlg" class="buttonS dlgBtn"><span>确定</span></a>
				<a href="#" id="btnCancelPPTAttend" name="closeDialogForm" dlg="tblbatchPPTAttendDlg" class="buttonS dlgBtn"><span>取消</span></a>
			</div>
		</div>
	</div>
	<div id="tblbatchPPTSpeakerDlg" class="dialogForm hidden" ltab="6" trigger="" style="width:600px;">
		<h3>PPT演讲人</h3>
		<div id="meeting-PPTSpeaker-form" class="dialog-form-content">
			<form action="PPT/batchSaveSpeaker" method="post">
				<field class="form-field">
					<label class="title">PPT </label> 
					<select id="speakerPpts" name="pptId" url="PPT/jsonlist?meetingId=" valuefield="id" textfield="subject" class="short"></select>
					<label class="title">演讲人员</label>
					<div>
					<a id="tblspeakerusers" href="User/speakUsers" class="toolbar-meeting searchbtn" style="display: none;">查询</a>
					<input name="meetingId" type="hidden" clear="false"/>
					</div>
					<div class="">
						<h3>请选择演讲人员</h3>
						<div id="tblspeakerusersData">
							<div pagesize="10"></div>
						</div>
						<ul id="tblspeakerusersPage" class="page"></ul>
					</div>
				</field>
			</form>
			<div class="buttonRegion">
				<a href="#" id="btnSavePPTSpeaker" name="saveDialogForm" dlg="tblbatchPPTSpeakerDlg" class="buttonS dlgBtn"><span>确定</span></a>
				<a href="#" id="btnCancelPPTSpeaker" name="closeDialogForm" dlg="tblbatchPPTSpeakerDlg" class="buttonS dlgBtn"><span>取消</span></a>
			</div>
		</div>
	</div>
	<div id="tblUploadDlg" class="dialogForm hidden" trigger="">
		<h3>上传PPT</h3>
		<div class="dialog-form-content">
			<form action="Meeting/upload" enctype="multipart/form-data"  method="POST">
				<label style="color:red;font-weight:bold;">提示：如果上传的文件大于20M，需要耐心等待5-10分钟</label>
				<field class="form-field"> 
					<input type="hidden" clear="false" name="meetingId" />  
					<label class="title" style="width:80px;">主题</label> 
					<input type="text" name="subject" class=" long" required="true" elename="zjh"/> 
					<label class="title" style="width:180px;">文件</label> 
					<input type="file" name="file" value="" required="true" class=" long" /> 
				</field>
			</form>
			<div class="buttonRegion">
				<a href="#" dlg="tblUploadDlg" name="saveDialogForm"
					class="dlgBtn  buttonS">确认</a> <a href="#"
					dlg="tblUploadDlg" name="closeDialogForm"
					class="dlgBtn  buttonS">取消</a>
			</div>
		</div>
	</div>
	<div id="tblServerDlg" class="dialogForm hidden" trigger="">
		<h3>设置服务器</h3>
			<div class="dialog-form-content">
				<form action="Meeting/saveServer"  method="POST" id="serverInfoForm">
					<field class="form-field">  
						<label class="title">服务器名称</label> 
						<input type="text" name="serverName" class=" long" required="true"/> 
						<label class="title">服务器类型</label> 
						<select name="serverType" class="long">
							<option value="0">内网</option>
							<option value="1">外网</option>
							<option value="2">临时</option>
						</select>
					</field>
				</form>
			<div class="buttonRegion">
				<a href="#" dlg="tblServerDlg" name="saveDialogForm" class="dlgBtn  buttonS"> 确定</a> <a href="#" dlg="tblServerDlg" name="closeDialogForm" class="dlgBtn  buttonS"> 取消</a>
			</div>
		</div>
	</div>
	<div class="popUserList hidden modal" id="overlayPopUserList">
		<h3>请选择人员</h3>
		<a href="#" class="buttonS" name="popUserListSave" style="margin:10px 10px 0px;">确定</a>
		<a href="#" class="buttonS" name="closeMe" style="margin:10px 10px 0px;">取消</a>
		<div>
			<a id="tbluserlist" href="#" class="searchbtn"></a>
			<input name="meetingId"type="hidden" />
		</div>
		<div id="tbluserlistData">
			<div pagesize="10"></div>
		</div>
		<ul id="tbluserlistPage" class="page"></ul>
	</div>
	<input type="hidden" id="globalCurrentId" name="meetingId" />
	<div class="wait hidden" id="waitingOverlay" style="z-index: 35000;"></div>
	<table id="containerTable" class="container" cellspacing="0" cellpadding="0">
		<tr>
			<td class="td_container">
				<div class="page-wrapper">
					<div id="header">
						<a href="Login/exit" id="exit" class="iconLink exit">退出</a>
						<a href="Meeting/getServer" rel="#tblServerDlg" id="setting" class="EditItem trigger iconLink setting">设置服务器</a>
						<a href="<%=request.getContextPath()%>/User"  class="setting iconLink">用户管理</a>
					</div>
					<table cellspacing="0" cellpadding="0" class="mainContent">
						<tr>
							<td class="slideBarCont">
								<table cellspacing="0" cellpadding="0" class="slideBar">
									<tr>
										<td id="leftmeetingtable">
											<!-- 
											 <h3 id="serverNameInfo">会议列表</h3>
											-->
											<span  id="serverNameInfo" style="margin-left: 10px">会议列表</span>
											<a href="#" name="addMeeting"  class="toolbar-meeting add_items" >新增</a>
										</td>
									</tr>
									<tr>
										<td class="left-list-table-td">
											<div id="meetinglist" url="Meeting/list">
											</div>
										</td>
									</tr>
								</table>
							</td>
							<td>
								<table cellspacing="0" cellpadding="0" class="right-list-table">
									<tr>
										<td class="right_tab_list">
											<ul id="tab-title" class="ctab">
												<li class="tab-ul-li">
													<a href="#0" tag=0 id="meeting-info" class="sel"> 
														<span>会议信息</span> 
													</a>
												</li>
												<li class="tab-ul-li">
													<a href="#1" search="tblSchedules" tag=1 id="meeting-schedule"> 
														<span>会议日程</span> 
													</a>
												</li>
												<li class="tab-ul-li users_in_meeting">
													<a search="tblMeetingusers" tag=2 href="#2" id="meeting-user">
														<span>参会人员</span> 
													</a>
												</li>
												<!--  
												<li class="tab-ul-li">
													<a href="#3" tag=3 search="tblVotes" id="meeting-vote"> 
														<span>投票</span> 
													</a>
												</li>
												<li class="tab-ul-li">
													<a href="#4" tag=4 id="meeting-note" search="tblNotice"> 
														<span>通知公告</span> 
													</a>
												</li>
												-->
												<li class="tab-ul-li">
													<a search="tblPPTSpeaker" tag=5 href="#5" id="meeting-ppt-speaker">
														<span> PPT演讲人员</span> 
													</a>
												</li>
												<li class="tab-ul-li ppt_list_title">
													<a search="tblPPTList" tag=6 href="#6" id="meeting-ppt-search" >
														<span> PPT列表</span> 
													</a>
												</li>
											</ul>
										</td>
									</tr>
									<tr>
										<td class="right-list-table-td">
											<div id="tab-content-1" class="ctab-content">
												<div id="meeting¡ªinfo-form" class="content_form2">
													<form action="Meeting/save" id="meetingInfoForm"
														 method="post">
														<field class="form-field"> 
															<input type="hidden" name="id" defaultval="0" value="0"/>
															<input type="hidden" name="meetingStatus" defaultval="0" value="0"/>
															<label for="name" style="display:block">主题</label> 
															<input type="text" name="name" id="iptTitle"  required="true" class="long"/>
															<label for="desc" class="title" style="display:block">会议描述</label> 
															<textarea name="desc" id="iptMeetingDesc" required="true" class="long" rows="4"></textarea>
															<label for="startTimestamp" style="display:block" class="title">开始时间</label> 
															<input type="text" name="startTimestamp" id="iptOpenDateTime" class="myWdate long"/>
															<label for="endTimestamp" style="display:block" class="title">结束时间</label> 
															<input type="text" name="endTimestamp"  class="myWdate long"/>
															<label for="address" style="display:block" class="title">会议地点 </label> 
															<input type="text" name="address" id="iptMeetingAddress" class=" long"/>
															<label for="meetingNote" style="display:block" class="title">备注</label> 
															<textarea name="meetingNote" id="note" rows="4" class="long">
															</textarea>																 
														</field>
													</form>
													<div class="buttonRegion">
														<a href="#" id="btnSubmitInfo" class="buttonS">确定</a>
													</div>
												</div>
											</div>
											
											<div id="tab-content-2" class="ctab-content" style="display: none">
												<div id="toolbar" class="bar">
													<a href="#" id="btnAddSchedule" list="tblSchedules" rel="#tblSchedulesDlg" class="AddItem bar-new toolbar-button trigger">新增</a>
												</div>
												<div>
													<a id="tblSchedules" href="MeetingSchedule/list" class="searchbtn"></a> <input name="meetingId" type="hidden" />
												</div>
												<div id="tblSchedulesData">
													<div pagesize="20"></div>
												</div>
												<ul id="tblSchedulesPage" class="page"></ul>
											</div>
										
											<div id="tab-content-3" class="ctab-content" style="display: none">
												<div id="toolbar" class="bar">
													<a href="#" id="btnNewMeetingUser"
														rel="#tblMeetingusersDlg"
														class="bar-new toolbar-button AddItem trigger">新增</a>
													<a href="#"  id="btnAddPPTUsers" name="batchNew"
													rel="#tblbatchPPTAttendDlg" class="AddItem bar-batchAdd toolbar-button trigger">批量新增</a>
												</div>
												<div>
													<a id="tblMeetingusers" href="MeetingUser/list" class="searchbtn"></a> <input name="meetingId" type="hidden" />
												</div>
												<div id="tblMeetingusersData">
													<div pagesize="20"></div>
												</div>
												<ul id="tblMeetingusersPage" class="page"></ul>
											</div>
										
											<div id="tab-content-4" class="ctab-content" style="display: none">
												<div id="toolbar" class="bar">
													<a href="#" id="btnAddVote" list="tblVotes"
														rel="#tblVotesDlg"
														class="AddItem bar-new toolbar-button trigger">新增</a>
												</div>
												<div>
													<a id="tblVotes" href="MeetingVoteInfo/list" class="searchbtn"></a> 
													<input name="meetingId" type="hidden" />
												</div>
												<div id="tblVotesData">
												<div pagesize="20"></div>
												</div>
												<ul id="tblVotesPage" class="page"></ul>
											</div>
										
											<div id="tab-content-5" class="ctab-content" style="display: none">
												<div id="toolbar" class="bar">
													<a href="#" list="tblNotice" id="btnAddNotice" rel="#tblNoticeDlg" class="AddItem bar-new toolbar-button trigger">ÐÂÔö</a>
												</div>
												<div>
													<a id="tblNotice" href="MeetingNotice/list" class="searchbtn"></a> 
													<input name="meetingId" type="hidden" />
												</div>
												<div id="tblNoticeData">
													<div pagesize="20"></div>
												</div>
												<ul id="tblNoticePage" class="page"></ul>
											</div>
										
											<div id="tab-content-6" class="ctab-content" style="display: none">
												<div id="toolbar" class="bar">
													<a href="#" list="tblPPTSpeaker" id="btnAddPPTSpeaker" 
													rel="#tblPPTSpeakerDlg" class="AddItem bar-new toolbar-button trigger">新增</a>
													<a href="#"  id="btnAddPPTSpeakers" name="batchSpeaker"
													rel="#tblbatchPPTSpeakerDlg" class="AddItem bar-batchAdd toolbar-button trigger">批量新增</a>
												</div>
												<div>
													<a id="tblPPTSpeaker" href="PPT/speakerlist" class="searchbtn"></a> 
													<input name="meetingId" type="hidden" />
												</div>
												<div id="tblPPTSpeakerData">
													<div pagesize="20"></div>
												</div>
												<ul id="tblPPTSpeakerPage" class="page"></ul>
											</div>
											<div id="tab-content-7" class="ctab-content" style="display: none">
												<div>
													<a id="tblPPTList" href="PPT/list" class="searchbtn"></a> 
													<input name="meetingId" type="hidden" />
												</div>
												<div id="tblPPTListData">
													<div pagesize="20"></div>
												</div>
												<ul id="tblPPTListPage" class="page"></ul>
											</div>
										</td>
										
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
			</td>
		</tr>
		<tr>
			<td class="tbl-footer">
				<p>Copyright© 2011 中国移动广州分公司版权所有</p></td>
		</tr>
	</table>


	<script type="text/javascript" charset="utf-8">
		$(document).ready(Index.Init);
	</script>
</body>
</html>
